<template>
    <div class="login">
        <div class="box">
            <div class="name">张哈偶</div>
            <div class="pwd">张哈偶</div>
        </div>
    </div>
</template>

<script lang="ts" setup>


</script>


<style scoped>
@media screen and (min-width: 480px) {
    .box {
        font-size: 1.2em;
        color: red;
    }
}

@media screen and (min-width: 680px) {
    .box {
        font-size: 1.5em;
        color: rgb(255, 255, 255);
    }
}

.login {
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, yellow, skyblue);
    background-image: url('../../assets/bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
}

.login::after{
    content: '';
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    /* filter: blur(50px); */
    backdrop-filter: blur(50px);
    background-color: rgba(255, 255, 255, 0.9);
    /* transform: scale(1.2); */
}

.box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background-color: rgba(255, 255, 255, .5); */
    background-color: white;
    width: 400px;
    height: 200px;
    z-index: 9999;
}
</style>